package com.maven.crm.action;
import com.maven.crm.entity.Customer;
import com.maven.crm.service.CustomerService;
import com.opensymphony.xwork2.ActionSupport;

public class CustomerAction extends ActionSupport {
	private Long cust_id;
	private Customer customer;
	private String cust_user;
	private CustomerService cs;
	public Long getCust_id() {
		return cust_id;
	}

	public void setCust_id(Long cust_id) {
		this.cust_id = cust_id;
	}
	
	public String findCustomerById(){
		customer = cs.findById(cust_id);
		
		System.out.println("前端传过来的客户id是："+cust_id);
		return SUCCESS;
	}

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public void setCs(CustomerService cs) {
		this.cs = cs;
	}
	
}
